<div class="content-white p1000">
    <div class="operaWrap">
        日期：<nz-date-picker [(ngModel)]="searchParam.dtWorkdate" nzAllowClear nzPlaceHolder="请选择日期"></nz-date-picker>
        &nbsp;&nbsp;&nbsp;
        <app-farmreact #farmReact></app-farmreact>
        作业内容：
        <input nz-input class="wd150" placeholder="请输入作业内容" [(ngModel)]="searchParam.vcWorkinfo" />
        &nbsp;&nbsp;&nbsp;
        审批状态：
        <nz-select class="wd100" nzAllowClear [(ngModel)]="searchParam.vcStatus">
            <nz-option *ngFor="let item of spztList" [nzLabel]="item.opName" [nzValue]="item.opValue">
            </nz-option>
        </nz-select>
        &nbsp;&nbsp;&nbsp;
        完成情况：
        <nz-select class="wd100" nzAllowClear [(ngModel)]="searchParam.vcFinished">
            <nz-option *ngFor="let item of wcqkList" [nzLabel]="item.opName" [nzValue]="item.opValue">
            </nz-option>
        </nz-select>
        &nbsp;&nbsp;&nbsp;
        <button nz-button nzType="default" (click)="search()"><i nz-icon nzType="search"></i>查询</button>
    </div>
    <ng-container *ngIf="typeName === 'export';else another">
        <div class="operaWrap">
            <button nz-button nzType="default" (click)="export()"><i nz-icon nzType="upload"></i>导出</button>
        </div>
    </ng-container>
    <ng-template #another>
        <div class="operaWrap">
            <button *ngIf="typeName === 'workarea'" nz-button nzType="default" (click)="modalShow('uploadModal')"><i
                    nz-icon nzType="plus-circle"></i>提报</button>
            <button *ngIf="typeName === 'station' || typeName === 'seg'" nz-button nzType="default"
                (click)="modalShow('approve')"><i nz-icon nzType="edit"></i>审批</button>
            <button *ngIf="typeName === 'execution'" nz-button nzType="default" (click)="feedback()"><i nz-icon
                    nzType="swap"></i>反馈</button>
            <button nz-button nzType="default" (click)="modalShow('delModal')"><i nz-icon
                    nzType="delete"></i>删除</button>
            <button *ngIf="typeName === 'export'" nz-button nzType="default" (click)="export()"><i nz-icon
                    nzType="upload"></i>导出</button>
        </div>
    </ng-template>
</div>

<app-table #tcp [tableId]="'dispatchList'" [tableScroll]="tableScroll" [headData]="headData" [plainData]="plainData">
</app-table>

<app-operamodal *ngIf="operaList.addModal" [popTitle]="'新增'" [operaType]="'add'" [apiUrl]="apiUrl.add"
    (closeModal)="modalHide('addModal')" (reloadData)="loadList()">
</app-operamodal>
<app-operamodal *ngIf="operaList.uploadModal" [popTitle]="'提报'" [operaType]="'upload'" [apiUrl]="apiUrl.upload"
    [responseData]="tempData" (closeModal)="modalHide('uploadModal')" (reloadData)="loadList()">
</app-operamodal>
<app-operamodal *ngIf="operaList.delModal" [popTitle]="'删除'" [operaType]="'del'" [apiUrl]="apiUrl.del"
    [responseData]="tempData" (closeModal)="modalHide('delModal')" (reloadData)="loadList()">
</app-operamodal>
<app-operamodal *ngIf="operaList.approve" [popTitle]="'审批'" [operaType]="'approve'" [apiUrl]="apiUrl.approve"
    [responseData]="tempData" (closeModal)="modalHide('approve')" (reloadData)="loadList()">
</app-operamodal>